import $http from '@/assets/js/http'


//故事与回忆列表
export function getStoryList(title, index, size) {
    return $http.get('/manage/storyMemory/list', {
        params: { title: title, pageIndex: index, pageSize: size }
    });
}

//删除故事回忆列表
export function postDeleteStory(delId) {
    return $http.post('/manage/storyMemory/delete', {
        id: delId
    });
}

//新增故事回忆
export function postAddStory(param) {
    return $http.post('/manage/storyMemory/add', {
        headImg:param.headImg,
        title:param.title,
        content:param.content,
        authorize:param.authorize,
        source:param.source,
        author:param.author,
        keywords:param.keywords,
    });
}

//编辑故事回忆
export function postEditStory(param) {
    return $http.post('/manage/storyMemory/edit', {
        id:param.id,
        headImg:param.headImg,
        title:param.title,
        content:param.content,
        authorize:param.authorize,
        source:param.source,
        author:param.author,
        keywords:param.keywords,
    });
}